package stringManipulations;

public class TestingDotEquals {
	private final static String stringErrorFlag = "!!!ERRORFLAG!!!";
	
	public static void main(String[] args) {
		String myString = "12345abcd";
		System.out.println("Using (String).equals\tDoes " + myString + " Equal " + stringErrorFlag + "  ?   " + myString.equals(stringErrorFlag));
		myString = stringErrorFlag;
		System.out.println("Using (String).equals\tDoes " + myString + " Equal " + stringErrorFlag + "  ?   " + myString.equals(stringErrorFlag));
		myString = "!!!ERRORFLAG!!!";
		System.out.println("Using  ==\tDoes " + myString + " Equal " + stringErrorFlag + "  ?   " + (myString == stringErrorFlag));
		
		
	}

}
